package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.DistributionLogMapper;
import org.linlinjava.litemall.db.domain.LitemallDistributionLog;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDate;
import java.util.List;

@Service
public class DistributionLogService {
    @Resource
    private DistributionLogMapper distributionLogMapper;

    public List<LitemallDistributionLog> findByCondition(LocalDate registeDate,String userName,String email){
        return distributionLogMapper.findByCondition(registeDate, userName, email);
    }

    public List<LitemallDistributionLog> findByUserId(Integer userId){
        return distributionLogMapper.findByUserId(userId);
    }
}
